package com.designpatterns.strategy.user;

import com.designpatterns.strategy.impl.FlyNoWay;
import com.designpatterns.strategy.impl.Squeak;

public class RubberDuck extends Duck {

	public RubberDuck() {
		setFlyBehaviour(new FlyNoWay());
		setQuackBehaviour(new Squeak());
	}
	
	@Override
	public void display() {
		System.out.println("I am a Rubber Duck");
	}
}
